package com.my.ycv51.ycinit.en;


import android.os.Parcel;
import android.os.Parcelable;

/**
 * The enum of the decoder decode type.
 *
 * @Author MRH
 */
public enum EncodeType implements Parcelable {
    QR_CODE(0),
    BAR_CODE(1);


    EncodeType(int i) {
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeInt(ordinal());
    }

    public static final Creator<EncodeType> CREATOR = new Creator<EncodeType>() {

        @Override
        public EncodeType createFromParcel(Parcel source) {
            return EncodeType.values()[source.readInt()];
        }

        @Override
        public EncodeType[] newArray(int size) {
            return new EncodeType[size];
        }
    };


}
